package cn.befory.config;

import cn.hutool.cache.Cache;
import cn.hutool.cache.impl.LRUCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CacheConfig {

    @Bean("cache")
    public Cache<String,String> cache (){
        Cache<String, String> cache = new LRUCache<String, String>(50000, Long.MAX_VALUE);
        return cache;
    }
}
